package top.tangyh.lamp.care.mapper;

import cn.hutool.core.collection.CollectionUtil;
import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import top.tangyh.basic.base.mapper.SuperMapper;
import top.tangyh.lamp.care.entity.BHl7ObvResult;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * <p>
 * Mapper 接口
 * 患者观察结果
 * </p>
 *
 * @author zqb
 * @date 2024-07-23 08:33:21
 * @create [2024-07-23 08:33:21] [zqb] [代码生成器生成]
 */
@Repository
public interface BHl7ObvResultMapper extends SuperMapper<BHl7ObvResult> {

    default List<BHl7ObvResult> selectHl7ObvResultListByPatIdentList(List<String> patIdentList) {
        LambdaQueryWrapper<BHl7ObvResult> queryWrapper = new LambdaQueryWrapper<>();
        queryWrapper.in(CollectionUtil.isNotEmpty(patIdentList), BHl7ObvResult::getPatientIdent, patIdentList);
        return this.selectList(queryWrapper);
    }
}


